package com.microservice.base.entity;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModelProperty;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotEmpty;

import org.hibernate.validator.constraints.Length;

/**
 * 场所信息表 管理宿舍或者教学楼等_尚文
 *
 * @author shangwen
 * @email 1159673142@qq.com
 * @date 2020-05-06 10:13:06
 */
@Data
public class Place implements Serializable {
    private static final long serialVersionUID = 1L;

    //主键
    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "主键", notes = "主键", allowEmptyValue = false, required = false)
    private String id;
    //学校编码
    @Length(min = 0, max = 20)
    @ApiModelProperty(value = "学校编码", notes = "学校编码", allowEmptyValue = false, required = false)
    private String schoolCode;
    //场所名称
    @Length(min = 0, max = 50)
    @ApiModelProperty(value = "场所名称", notes = "场所名称", allowEmptyValue = false, required = false)
    private String placeName;
    //二级名称
    @Length(min = 0, max = 50)
    @ApiModelProperty(value = "二级名称", notes = "二级名称", allowEmptyValue = false, required = false)
    private String subname;
    //该场所楼层数
    @ApiModelProperty(value = "该场所楼层数", notes = "该场所楼层数", allowEmptyValue = false, required = false)
    private Long floorCount;
    //场所类型
    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "场所类型", notes = "场所类型", allowEmptyValue = false, required = false)
    private String type;
    //状态
    @Length(min = 0, max = 10)
    @ApiModelProperty(value = "状态", notes = "状态", allowEmptyValue = false, required = false)
    private String status;
    //备注
    @Length(min = 0, max = 255)
    @ApiModelProperty(value = "备注", notes = "备注", allowEmptyValue = false, required = false)
    private String remarks;
    //创建者
    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "创建者", notes = "创建者", allowEmptyValue = false, required = false)
    private String createUser;
    //创建人姓名
    @Length(min = 0, max = 255)
    @ApiModelProperty(value = "创建人姓名", notes = "创建人姓名", allowEmptyValue = false, required = false)
    private String createUserName;
    //创建时间
    @ApiModelProperty(value = "创建时间", notes = "创建时间", allowEmptyValue = false, required = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    //更新人
    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "更新人", notes = "更新人", allowEmptyValue = false, required = false)
    private String updateUser;
    //
    @Length(min = 0, max = 255)
    @ApiModelProperty(value = "", notes = "", allowEmptyValue = false, required = false)
    private String updateUserName;
    //更新时间
    @ApiModelProperty(value = "更新时间", notes = "更新时间", allowEmptyValue = false, required = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    //1：已删除，0：正常
    @Length(min = 0, max = 1)
    @ApiModelProperty(value = "1：已删除，0：正常", notes = "1：已删除，0：正常", allowEmptyValue = false, required = false)
    private String deleted;

}
